<?php
$this->pageTitle = '编辑文章';
$this->breadcrumbs = array(
	'网购知识库' => array('article/index'),
//        $model->title=>array('view','id'=>$model->id),
	'编辑文章'
);
?>
<div class="goods_header end_header"><h3>编辑文章</h3></div>
<div class="form" style="border:1px solid #d7d7d7;border-top:none;padding:10px;">
		<?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'articleform',
			'enableAjaxValidation'=>false,
		)); ?>
			<p class="inputWp">
				<?php echo $form->labelEx($formModel,'title'); ?>
				<?php echo $form->textField($formModel,'title',array('maxlength'=>250)); ?>
				<?php echo $form->error($formModel,'title'); ?>
			</p>
                        <p class="inputWp">
				<?php echo $form->labelEx($formModel,'tag'); ?>
				<?php echo $form->textField($formModel,'tag',array('maxlength'=>30)); ?>
				<?php echo $form->error($formModel,'tag'); ?>
			</p>
			<p class="inputWp">
				<?php echo $form->labelEx($formModel,'cateid');?>
				<?php echo $form->DropDownList($formModel,'cateid',CHtml::listData(Category::model()->findAll(),'id','name'));?>
			</p>
			<div>
				<?php
				$this->widget('ext.dxheditor.DxhEditor',array(
					'model'=>$formModel,
					'attribute' => 'text',
					'htmlOptions' => array('style'=>'width:100%;height:600px;'),
                                        'options' =>array('tools'=>'simple'),
				));?>
			</div>
			<p class="inputWp">
				<button type="submit">提交并发表文章</button>
			</p>
		<?php $this->endWidget(); ?>
</div><!-- form -->

